package cn.edu.scau.cmi.mingjunhui.client;

import java.util.Scanner;

import cn.edu.scau.cmi.mingjunhui.simpleFactoryMethod.MeatFactory;
import cn.edu.scau.cmi.mingjunhui.simpleFactoryMethod.domain.Meat;

public class SimpleFactoryMethodClient {

	public static void main(String[] args) {
		
		System.out.println("Please select which kind of meat you want to eat: beef or pork or chicken???");
		Scanner scanner = new Scanner(System.in);  
		String meatKind = scanner.next();  
		switch(meatKind) {
		case"beef":Meat beef = MeatFactory.getMeat("beef");	beef.cook();break;
		case"pork":Meat pork = MeatFactory.getMeat("pork");	pork.cook();break;
		case"chicken":Meat chicken = MeatFactory.getMeat("chicken");chicken.cook();break;
		default:System.out.println("sorry, your input is not correct");
		}

	}

}
